]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: Always raise UI to top when opening
authorAlynx Zhou <alynx.zhou@gmail.com>
Mon, 4 Jul 2022 04:01:41 +0000 (12:01 +0800)
committerMarge Bot <marge-bot@gnome.org>
Mon, 4 Jul 2022 13:38:15 +0000 (13:38 +0000)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2331>

js/ui/screenshot.js

index a84cd0a44bbc8d5218a0d880ff5aaa7aee7c1f43..bdbf7134feb6c2548a6c9fd0aa8d1a46c4f121e6 100644 (file)
@@ -1506,6 +1506,10 @@ var ScreenshotUI = GObject.registerClass({
         // pop their grabs.
         Main.layoutManager.emit('system-modal-opened');
 
+        const { screenshotUIGroup } = Main.layoutManager;
+        screenshotUIGroup.get_parent().set_child_above_sibling(
+            screenshotUIGroup, null);
+
         const grabResult = this._grabHelper.grab({
             actor: this,
             onUngrab: () => this.close(),